define(['durandal/system', 'knockout'], function(system, ko) {
    var vmodel = ko.observable();

    var vm = {
        activate:activate,
        title:'新闻',
        deactivate:deactivate,
        vmodel:vmodel,
    };

    return vm;

    function activate(id,args) {
        system.log('新闻面板激活');
        return loadObservables(id);
    }

    function deactivate() {
        system.log('新闻面板取消激活');
    }

    function loadObservables(id) {
        vmodel({ id:id, name:'新闻面板' });
    }
});